#include<iostream>
#include<stdbool.h>
using namespace std;

class Date
{
	friend ostream& operator<<(ostream& cout, const Date& d);

public:
	int Getmonth_day();

	Date(int year = 1, int month = 1, int day = 1);
	
	Date(const Date& d);
	
	Date& operator=(const Date& d);
	
	~Date();
		
	Date operator+=(int day);
	
	Date operator+(int day);
	
	Date operator-=(int day);
	
	Date operator-(int day);
	
	Date operator++();
	
	Date operator++(int);
	
	Date operator--();
	
	Date operator--(int);
	
	bool operator>=(const Date& d);
	
	bool operator<(const Date& d);
	
	bool operator==(const Date& d);
	
	bool operator<=(const Date& d);
	
	bool operator!= (const Date& d);
	
	int operator-(const Date& d);
	
	void Print() const;


private:
	int _year;
	int _month;
	int _day;

};

ostream& operator<<(ostream& cout, const Date& d);
